﻿<%@ Page Title="Lista de Clientes" Language="vb" AutoEventWireup="false" MasterPageFile="~/adm/Pagina.Master"
    CodeBehind="ClienteLista.aspx.vb" Inherits="sonicERPinterface.ClienteLista" %>
    <%@ Register TagPrefix="obout" Namespace="OboutInc.Calendar2" Assembly="obout_Calendar2_Net" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="divcadastro">
        <div id="divgrid">
            <center>
            
                <asp:Label ID="lbl1" Style="background-color: #ededed" Text="Lista de Clientes" runat="server"></asp:Label></center>
            <asp:Panel ID="pnl1" runat="server" Height="51px" Visible="false" BorderColor="Blue"
                BorderStyle="Solid">
                <asp:Image ID="img3" runat="server" Height="48px" ImageAlign="Baseline" ImageUrl="~/img/warning_blue.png"
                    Style="text-align: left" Width="61px" />
                &nbsp;<asp:Label ID="lblerro" runat="server" ForeColor="Red" Style="text-align: center"></asp:Label>
            </asp:Panel>
            <br />
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/comment_add.png" />
            <br />
            <label style="color: #AAAAFF">
                &nbsp;&nbsp; New&nbsp;
            </label>
            <br />
            <br />
            <br />
            <center>
                <asp:Repeater ID="rptCliente" runat="server">
                    <HeaderTemplate>
                        <table width="600px" border="1">
                            <tr style="background-color: Silver">
                                <th>
                                    Editar
                                </th>
                                <th>
                                    Nome
                                </th>
                                <th>
                                    Tipo do Cliente
                                </th>
                                <th>
                                    Email
                                </th>
                                <th>
                                    Data do Cadastro
                                </th>
                                <th>
                                    Contato
                                </th>
                                <th>
                                    Telefone
                                </th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:LinkButton CssClass="LinkButton" ID="imgEditar" CommandArgument=' <%# Eval("id") %> '
                                    CommandName="Editar" runat="server"><img src="../img/comment_edit.png" /> </asp:LinkButton>
                            </td>
                            <td>
                                <%# Eval("nomecliente")%>
                            </td>
                            <td>
                                <%# Eval("tipocliente")%>
                            </td>
                            <td>
                                <%# Eval("email")%>
                            </td>
                            <td>
                                <%# Eval("dt_cadastro")%>
                            </td>
                            <td>
                                <%# Eval("contato")%>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddltelefone" runat="server" Width="120">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr style="background-color: Silver">
                            <td>
                                <asp:LinkButton CssClass="LinkButton" ID="imgEditar" CommandArgument=' <%# Eval("id") %> '
                                    CommandName="Editar" runat="server"><img src="../img/comment_edit.png" alt="Editar" /> </asp:LinkButton>
                            </td>
                            <td>
                                <%# Eval("nomecliente")%>
                            </td>
                            <td>
                                <%# Eval("tipocliente")%>
                            </td>
                            <td>
                                <%# Eval("email")%>
                            </td>
                            <td>
                                <%# Eval("dt_cadastro")%>
                            </td>
                            <td>
                                <%# Eval("contato")%>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddltelefone" runat="server" Width="120">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
                <asp:Panel ID="pnlpaginacao" runat="server">
                <table width="600px"  border="1"   cellpadding="0" cellspacing="0"  >
                    <tr>
                        <td>
                            <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/img/button_blue_rew.png" OnClick="btnNext_Click" />
                        </td>
                        <td>
                          
                                <asp:ImageButton ID="btnLast" runat="server" ImageUrl="~/img/button_blue_first.png" OnClick="btnLast_Click" />
                            
                        </td>
                        <td >
                            P&aacute;gina
                                <asp:Label ID="lblSelectedPage" runat="server"></asp:Label>
                                de
                                <asp:Label ID="lblPageCount" runat="server"></asp:Label>
                            
                        </td>
                        
                        <td align="center">
                            
                                <asp:ImageButton ID="btnFirst" runat="server" ImageUrl="~/img/button_blue_last.png" OnClick="btnFirst_Click" />
                       
                        </td>
                        <td align="right">
                           
                                <asp:ImageButton ID="btnPrevious" runat="server" ImageUrl="~/img/button_blue_ffw.png" OnClick="btnPrevious_Click" />
                            
                        </td>
                       
                    </tr>
                </table>
                </asp:Panel>
            </center>
        </div>
        <div id="filtro">
            <center>
                <asp:Label ID="Label1" Style="background-color: #ededed" Text="Filtros" runat="server"></asp:Label></center>
            <br />
            <label style="color: #AAAAFF">
                Data Inicio</label>
            <br />
            <asp:TextBox ID="txtdataininico" onkeyup="formataData(this,event);" runat="server"
                Width="64px" MaxLength="10"></asp:TextBox>
                           
<obout:Calendar ID="Calendar1" runat="server"
                         DatePickerMode="true"
                         TextBoxId="txtdataininico"  CultureName="pt-BR" DatePickerImagePath="/Calendar/styles/date_picker1.gif">
</obout:Calendar>    
         
            <br />
            <label style="color: #AAAAFF">
                &nbsp; Data Fim
            </label>
            <br />
            <asp:TextBox ID="txtdatafim" onkeyup="formataData(this,event);" runat="server" Width="64px"
                MaxLength="10"></asp:TextBox>

                         
<obout:Calendar ID="Calendar3" runat="server"
                         DatePickerMode="true"
                         TextBoxId="txtdatafim"  CultureName="pt-BR" DatePickerImagePath="/Calendar/styles/date_picker1.gif">
</obout:Calendar>    
            <br />
            <label style="color: #AAAAFF">
                Cliente do Tipo</label>
            <br />
            <asp:DropDownList ID="ddltipoCliente" runat="server" Height="22px" Width="98px">
            </asp:DropDownList>
            <br />
            <label style="color: #AAAAFF">
                Cliente
            </label>
            <br />
            <asp:TextBox ID="txtcliente" runat="server" Width="104px"></asp:TextBox>
            <br />
            <br />
            <center>
                <asp:ImageButton ID="btnok" runat="server" Height="47px" ImageUrl="~/img/filtro.png"
                    Width="57px" Style="margin-left: 1px" />
            </center>
            <center>
                <asp:Label ID="Label2" runat="server" Text="Filtrar" Style="color: #AAAAFF"></asp:Label></center>
            <br />
            <center>
                <asp:ImageButton ID="btnimprimir" ImageUrl="~/img/print.png" runat="server" /></center>
            <center>
                <asp:Label ID="Label3" runat="server" Text="Imprimir" Style="color: #AAAAFF"></asp:Label></center>
        </div>
    </div>
</asp:Content>
